import { pget, ppostJson } from '@/utils/req';
import { modalApi } from '@/utils/modalReq';
/**
 * 列表数据
 * @param query
 * @returns
 */
export async function getList(params: any): Promise<any> {
  return pget(
    `${modalApi.common}/shopec-expense-item-maintenance/expenseitemmaintenance/page`,
    params,
  );
}

/**
 * 新增
 * @param params
 * @returns
 */
export async function creatConfiguration(params: any): Promise<any> {
  return ppostJson(
    `${modalApi.common}/shopec-expense-item-maintenance/expenseitemmaintenance/save`,
    params,
  );
}

/**
 * 修改
 * @param params
 * @returns
 */
export async function editConfiguraion(params: any): Promise<any> {
  return ppostJson(
    `${modalApi.common}/shopec-expense-item-maintenance/expenseitemmaintenance/update`,
    params,
  );
}
